﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using LTSMZ.life.Model;
using LTSMZ.life.DAL;

namespace LTSMZ.life.BLL
{
    public class SecondTypeBll
    {
        SecondTypeDal dal = new SecondTypeDal();
        /// <summary>
        /// 二级类别显示
        /// </summary>
        /// <returns></returns>
        public List<SecondType> SecondTypeShow(int Fid)
        {
            return dal.SecondTypeShow(Fid);
        }
        /// <summary>
        /// 添加二级类别
        /// </summary>
        /// <param name="f"></param>
        /// <returns></returns>
        public int AddSecondType(SecondType f)
        {
            return dal.AddSecondType(f);
        }
        /// <summary>
        /// 删除二级类别
        /// </summary>
        /// <param name="Fid"></param>
        /// <returns></returns>
        public int DelSecondType(int Sid)
        {
            return dal.DelSecondType(Sid);
        }
        /// <summary>
        /// 显示新鲜水果的类别
        /// </summary>
        /// <returns></returns>
        public List<SecondType> ShowSecond1()
        {
            return dal.ShowSecond1();
        }
    }
}
